package org.codeart.price.remote;

import org.codeart.common.util.R;
import org.codeart.common.request.EstimatedPriceDTO;
import org.codeart.common.response.DirectionResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "service-map")
public interface ServiceMapClient {

    @PostMapping("/direction/driving")
    R<DirectionResponse> direction(@RequestBody EstimatedPriceDTO estimatedPriceDTO);
}
